Skip to content

fix: add AccessibleName for FileAttrWidget close button - #469

Draft
re2zero wants to merge 1 commit into
linuxdeepin:masterfrom
re2zero:fix/at-spi-completion-20261202
Draft

re2zero wants to merge 1 commit into
linuxdeepin:masterfrom
re2zero:fix/at-spi-completion-20261202

Conversation

@re2zero

@re2zero re2zero commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

AT-SPI 无障碍补全 - deepin-reader

任务概述

对 deepin-reader 执行 AT-SPI 无障碍补全,使覆盖率达到 100%。

补全前覆盖率

类型 已编写 缺失 应编写 覆盖率
C++ 28 1 29 96.6%

补全明细

文件 行号 变量名 类型 补全内容
reader/widgets/FileAttrWidget.cpp 171 closeButton DWindowCloseButton setObjectName("CloseButton") + setAccessibleName("CloseButton")

补全后覆盖率

类型 已编写 缺失 应编写 覆盖率
C++ 29 0 29 100%

编译验证

  • Qt6 + DTK6 编译通过(cmake .. -DCMAKE_BUILD_TYPE=Debug + make -j$(nproc))
  • 无新增编译错误

扫描 Commit

  • 补全前: 6b02865a
  • 补全后: d55c01f2

关联 Issue

V-9965

Summary by Sourcery

Enhancements:

  • Add an accessible name and object name to the FileAttrWidget close button.

1. Add setObjectName and setAccessibleName for closeButton in FileAttrWidget.
2. Update copyright year to 2026.

fix: 为文件属性窗口关闭按钮补全无障碍名称

1. 在 FileAttrWidget 中为 closeButton 添加 setObjectName 和 setAccessibleName。
2. 同步版权年份至 2026。

Log: 补全 FileAttrWidget 关闭按钮的 AT-SPI 无障碍名称
Influence:
  1. 验证文件属性窗口的关闭按钮可通过 AT-SPI 工具定位。
  2. 确认编译无错误。
PMS: V-9965
@deepin-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: re2zero

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Reviewer's Guide

UI

Add object and accessible names to the file-attributes dialog’s close button, and update the file’s copyright year.

  • reader/widgets/FileAttrWidget.cpp L1, L172-173

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants